package com.zjt.smart.ui.adapter.holder;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.zjt.smart.R;
import com.zjt.smart.ui.adapter.base.BaseAdapter;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 *
 * @author zhengjianting
 * @time 2017/11/3 0003 下午 2:04
 */

public class BaiduImageListHolder extends BaseAdapter.BaseHolder {

    @Bind(R.id.iv_image)
    ImageView ivImage;
    @Bind(R.id.tv_title)
    TextView tvTitle;

    public BaiduImageListHolder(View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
    }

    public BaiduImageListHolder(LayoutInflater inflater, ViewGroup parent) {
        this(inflater.inflate(R.layout.item_baidu_image, parent, false));
    }

    public ImageView getIvImage() {
        return ivImage;
    }

    public void setIvImage(ImageView ivImage) {
        this.ivImage = ivImage;
    }

    public TextView getTvTitle() {
        return tvTitle;
    }

    public void setTvTitle(TextView tvTitle) {
        this.tvTitle = tvTitle;
    }
}
